//Accepted
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <map>
#include <iostream>
#include <list>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;

int n, i, j, sum[2];
char s[1004];
int main (){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	scanf("%s", s);
	n=strlen(s);
	while(!(n==1&&s[0]=='0')){
		sum[0]=sum[1]=0;
		
		for(i=0;i<n;++i){
			sum[i&1]+=(s[i]-'0');
		}
		
		if((sum[0]%11)==(sum[1]%11))printf("%s is a multiple of 11.\n", s);
		else printf("%s is not a multiple of 11.\n", s);
		
		
		scanf("%s", s);
		n=strlen(s);
	}
	return 0;
}
